package com.xuyuli.dao;

import com.xuyuli.domain.LoginLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class LoginLogDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void insertLoginLog(LoginLog loginLog){
        String sqlStr = " insert into loginlog (userId,loginDate,operating) values (?,?,?) ";
        jdbcTemplate.update(sqlStr,new Object[]{loginLog.getUserId(),loginLog.getLoginDate(),loginLog.getOperating()});
    }

}

